package de.baumann.browser.views.dialog

import android.content.Context
import android.view.View
import de.baumann.browser.R
import kotlinx.android.synthetic.main.dialog_achieve_hash.*

/**
*@author:
*@date:2019/7/10 16:50
*@discription: 算力值达标 可要申请成为矿池
*/
class HashAchieveDialog(context: Context,var onClickListener: View.OnClickListener) : BaseTipDialog(context) {

    override fun initView() {
        super.initView()
        getButton().setOnClickListener {
            dismiss()
            onClickListener.onClick(it)
        }
    }

    override fun getTitle(): String {
        return context.getString(R.string.Congratulations_to_your_5_friends)
    }
    override fun getTipContent(): String {
        return context.getString(R.string.Calculated_power_value_up_to_1W)
    }

    override fun getTipSubContent(): String {
        return context.getString(R.string.can_apply_become_pool)
    }

    override fun getTipButtonText(): String {
        return context.getString(R.string.apply_immediately)
    }
}